package simple_factory_model;

public class Factory {
    //创建一个水果工厂
    //知道所需产品种类固定
    /*
    public Fruit CreateFruit(String Kind){
        if (Kind.equals("A"))
            return new Apple();
        if (Kind.equals("B"))
            return new Banana();
        return null;
    }

     */
    public Fruit CreateFruit(){
        return null;
    }
}
